﻿using LPLS.Commons.DBModule;
using System;

namespace LPLS.DBEntities
{
    // 自定义特性，用于绑定实体类和数据库键值
    [AttributeUsage(AttributeTargets.Class)]
    public class DatabaseKeyAttribute : Attribute
    {
        public DatabaseEnum DbKey { get; }

        public DatabaseKeyAttribute(DatabaseEnum dbKey)
        {
            DbKey = dbKey;
        }
    }
}